package 面向对象.作业;

public class MyDate {
    public int year;
    public int month;
    public int day;

    public MyDate() {
    }

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public  void showDate(){
        System.out.println(year+"年"+month+"月"+day+"日");
    }
    public boolean isLeapYear(){
        if (year%4==0&&year!=100||year%400==0){
            return true;
        }
        return false;
    }
}
